home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
SaveRenderedAs.ifx.pre
< prev
next >
Wrap
Text File
|
1996-03-02
|
2KB
|
58 lines
/*
* SaveRenderedAs.ifx.pre
* Written by Thomas Krehbiel
*
* Save rendered image.
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
* Revision History:
*
* 25.09.95 tek 2.1a: Fixed extension setting.
*/
OPTIONS RESULTS
lastpath = GETCLIP('Autofx_SaveRenderAs_Path')
lasttype = GETCLIP('Autofx_SaveRenderAs_Type')
lastopts = GETCLIP('Autofx_SaveRenderAs_Opts')
lastext = GETCLIP('Autofx_SaveRenderAs_Ext')
IF lastpath = "" THEN DO
GetPrefs RendPath
lastpath = result
END
IF lasttype = "" THEN lasttype = "ILBM"
IF lastext = "" THEN lastext = ".new"
Gadget.1 = 'STRING 120 5 200 14 "Output Path:" "'lastpath'"'
Gadget.2 = 'STRING 120 20 80 14 "Output Format:" "'lasttype'"'
Gadget.3 = 'STRING 120 35 200 14 "Format Options:" "'lastopts'"'
Gadget.4 = 'FILEREQ 321 5 20 14 "Output Path:" "'lastpath'" AT=1 DIRONLY'
Gadget.5 = 'TEXT 206 23 1 1 "EG: ILBM, JPEG, TIFF" 1'
Gadget.6 = 'STRING 120 50 200 14 "New Extension:" "'lastext'"'
Gadget.7 = 'TEXT 120 66 1 1 "(** = current frame number)" 1'
Gadget.8 = 'END'
NewComplexRequest '"Save Rendered Image As"' Gadget 360 84
IF rc ~= 0 THEN EXIT rc
lastpath = result.1
lasttype = result.2
lastopts = result.3
lastext = result.6
CALL SETCLIP('Autofx_SaveRenderAs_Path', lastpath)
CALL SETCLIP('Autofx_SaveRenderAs_Type', lasttype)
CALL SETCLIP('Autofx_SaveRenderAs_Opts', lastopts)
CALL SETCLIP('Autofx_SaveRenderAs_Ext', lastext)
EXIT